package com.itheima.网络编程;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class Demo1 {
    public static void main(String[] args) throws UnknownHostException {
        InetAddress inetAddress=InetAddress.getByName("192.168.18.61");

        InetAddress inetAddress1=InetAddress.getByName("www.baidu.com");


    }
}
